package com.ruoyi.contract.service;

import com.ice.common.model.IceShowConf;
import com.ice.core.context.IceRoam;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.contract.domain.ConRule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author 姚煜峰
* @description 针对表【CON_RULE】的数据库操作Service
* @createDate 2023-06-28 15:33:15
*/
public interface ConRuleService extends IService<ConRule> {

    AjaxResult insert(ConRule conRule) throws Exception;

    AjaxResult updateRules(ConRule conRule) throws Exception;

    AjaxResult removeIds(Long[] ids) throws Exception;

    List<IceRoam> autoCal(Long conId, String projectType, Map<String, Object> map);


    List<ConRule> selectConRuleByProjectId(Long projectId);

    IceShowConf getIceConfig(Long id);
    
    Long getDiscRuleByConId(Long conId);

}
